package fr.uparis10.miage.m1p1.menu.employe;

import fr.uparis10.miage.m1p1.menu.GenericMenu;

import fr.uparis10.miage.m1p1.menu.MenuExecutor;
import fr.uparis10.miage.m1p1.menu.MenuItemStruct;

public class EmployeMenuExecutor implements MenuExecutor {

	public void execute() {
		GenericMenu mainMenu = new GenericMenu();
		MenuItemStruct[] menuItems = { new MenuItemStruct(), // 0
				new MenuItemStruct(), // 1
				new MenuItemStruct() // 1
		};
		menuItems[0].text = "Show Employes";
		menuItems[0].executor = new ShowEmployeExecutor();
		menuItems[1].text = "Search Employes";
		menuItems[1].executor = new SearchEmployeExecutor();
		menuItems[2].text = "List all employes";
		menuItems[2].executor = new ListEmployeExecutor();
		mainMenu.addMenuItems(menuItems);
		mainMenu.show();
	}

}
